import random

age = random.randint(0, 40)
# print("大叔的年龄是：",age)
count=7

for i in range(count):
    age1 = input("请输入年龄：")
    if int(age1)>age:
        print("输入的年龄大了")
    elif int(age1)<age:
        print("输入的年龄小了")
    else:
        print("输入正确")
        break